Integrand size = 32, antiderivative size = 200 \[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=-\frac {2 \sqrt {a+b} \cot (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}-\frac {2 \sqrt {a+b} \cot (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 200, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {4127, 4006, 3869, 3917} \[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=-\frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{d}-\frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{d} \]
[In]
[Out]
Rule 3869
Rule 3917
Rule 4006
Rule 4127
Rubi steps \begin{align*} \text {integral}& = -\int \frac {-a+b \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx \\ & = a \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx-b \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx \\ & = -\frac {2 \sqrt {a+b} \cot (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}-\frac {2 \sqrt {a+b} \cot (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d} \\ \end{align*}
Time = 5.61 (sec) , antiderivative size = 143, normalized size of antiderivative = 0.72 \[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=-\frac {4 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {b+a \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} \left ((a+b) \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {a-b}{a+b}\right )-2 a \operatorname {EllipticPi}\left (-1,\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {a-b}{a+b}\right )\right ) \sec (c+d x)}{d \sqrt {a+b \sec (c+d x)}} \]
[In]
[Out]
Time = 8.03 (sec) , antiderivative size = 181, normalized size of antiderivative = 0.90
method | result | size |
default | \(\frac {2 \left (\cos \left (d x +c \right )+1\right ) \left (\operatorname {EllipticF}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {\frac {a -b}{a +b}}\right ) a +\operatorname {EllipticF}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {\frac {a -b}{a +b}}\right ) b -2 a \operatorname {EllipticPi}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), -1, \sqrt {\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {b +a \cos \left (d x +c \right )}{\left (a +b \right ) \left (\cos \left (d x +c \right )+1\right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {a +b \sec \left (d x +c \right )}}{d \left (b +a \cos \left (d x +c \right )\right )}\) | \(181\) |
parts | \(\text {Expression too large to display}\) | \(2901\) |
[In]
[Out]
\[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int { -\frac {b^{2} \sec \left (d x + c\right )^{2} - a^{2}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int \frac {a - b \sec {\left (c + d x \right )}}{\sqrt {a + b \sec {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int { -\frac {b^{2} \sec \left (d x + c\right )^{2} - a^{2}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int { -\frac {b^{2} \sec \left (d x + c\right )^{2} - a^{2}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=-\int -\frac {a^2-\frac {b^2}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]